package com.ask;

import com.ask.dao.UserDao;
import com.ask.service.Impl.ExampleService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) {
        ClassPathXmlApplicationContext ctx =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        ExampleService exampleService = (ExampleService) ctx.getBean("ExampleService");
        exampleService.addUser("test");



    }
}
